<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core">

   <h:panelGrid columns="1" cellpadding="5" style="width:40%; margin:20px auto;">  
	<h:form styleClass="form" id="idForm">
		<p:panel header="Login">
			<p:messages />
			<h:panelGrid styleClass="centered" columns="2" cellpadding="2" >
				<p:outputLabel value="Usuario: "  />
				<p:inputText value="#{userManagerController.userName}"  />
				
				<p:outputLabel value="Password: "/>
				<p:password value="#{userManagerController.password}" />				
			</h:panelGrid>			
			<br />
			<h:panelGrid columns="2" cellpadding="10">
			<p:commandButton value="Ingresar" action="#{userManagerController.validateUser}" update="idForm" />			
			</h:panelGrid>		
		</p:panel>
	 </h:form>
   </h:panelGrid>
</ui:composition>